#ifndef AST_STATEMENT_BLOCK_ITEM_LIST_H
#define AST_STATEMENT_BLOCK_ITEM_LIST_H

#include "../ASTNode.h"
class BlockItem;

/*
C99   6.8.2
block-item-list:
		block-item
		block-item-list    block-item
*/
class BlockItemList : public ASTNode
{
protected:
	BlockItemList(void)
		: ASTNode(ASTNode::block_item_list){};
public:
	BlockItemList(BlockItem *pItem, BlockItemList *pItemList = NULL)
		: ASTNode(ASTNode::block_item_list)
		, m_pItemList(pItemList)
		, m_pItem(pItem){};


	virtual ~BlockItemList(void);

	virtual void					codeGen();

protected:
	BlockItemList *					m_pItemList; //may be NULL
	BlockItem *						m_pItem;
};


#endif

